package com.loooooo.pm2024.modules.sys.model;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loooooo.pm2024.config.BigIDSerialize;

import java.io.Serializable;

public class PrettyUser implements Serializable {
    @JsonSerialize(using = BigIDSerialize.class)
    private Long id;
    private String username;
    private String email;
    private String mobile;
    private String weixin;
    private String qq;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public static PrettyUser build(User user) {
        PrettyUser pu=new PrettyUser();
        pu.setId(user.getId());
        pu.setUsername(user.getUsername());
        pu.setMobile(user.getMobile());
        pu.setEmail(user.getEmail());
        pu.setQq(user.getQq());
        pu.setWeixin(user.getWeixin());
        return pu;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
